export const login = () => {
    return new Promise((resolve, reject) => {
        wx.login({
            timeout: 10000,
            success: (result) => {
                resolve(result)
            },
            fail: (err) => {
                reject(err)
            },

        });

    })
}
export const ShowToast = (title) => {
    return new Promise((resolve, reject) => {
        wx.showToast({
            title,
            icon: 'none',
            duration: 2000,
            mask: false,
            success: (result) => {
                resolve(result)
            },
            fail: (err) => {
                reject(err)
            },

        });

    })
}